package com.hue.springbootvalidation.utils;

public enum Error {
    VALIDATION_ERROR(101, "参数效验错误"),
    UNKNOWN_ERROR(102, "未知错误");

    private Integer code;

    private String msg;

    Error(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
